You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.Sqrt Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.Sqrt Method

Square root.

Syntax
C#
Visual Basic
public TOpenCLValue Sqrt([In] TOpenCLValue X);

Calculate the square root of X.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLValue a,b; clMtxVec.CreateIt(out a, out b); try { b.Copy(4); a.Sqrt(b); // a=[2] } finally { clMtxVec.FreeIt(ref a, ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!